package com.dhcc.sds.base.dao;

import java.util.List;
import java.util.Map;

import com.dhcc.core.framework.result.node.ZTreeNode;
import org.apache.ibatis.annotations.Param;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.sds.base.entity.SdsQcfitemDicEntity;

/**
 * 表单值域字典表
 * 
 * @ClassName: SdsQcfitemDicMapper
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:10:47
 */
public interface SdsQcfitemDicMapper  extends BaseMapper<SdsQcfitemDicEntity> {
	
    List<SdsQcfitemDicEntity> list(@Param("map")Map<String, Object> map);
    List<SdsQcfitemDicEntity> page(@Param("page") Page<SdsQcfitemDicEntity> page,@Param("map")Map<String, Object> map);
    List<ZTreeNode> treeByItemId(@Param("formItemId")Long formItemId);
    List<SdsQcfitemDicEntity> listByItemId(@Param("formItemId")Long formItemId);

    String selectDicDesc(@Param("formItemId") Long formItemId, @Param("code") String code);

    List<SdsQcfitemDicEntity> selectContainsMatchRule(@Param("formItemId") Long formItemId);
}
